package it.polito.connectedcar.network;

public class SimulatedNetworkConnectorFactory implements NetworkConnectorFactory {

	private int nextPort;
	private static final int START_PORT = 8000;
	public SimulatedNetworkConnectorFactory() {
		nextPort = START_PORT;
	}
	
	@Override
	public synchronized EntityNetworkConnector getConnector() {
		return new SimulatedNetworkConnector(nextPort++);
	}

}
